//
//  OCSSPutInOrderPage.swift
//  OCSSStoreSwift
//
//  Created by MacMiniKangChe on 2018/11/2.
//  Copyright © 2018年 MacMiniKangChe. All rights reserved.
//

import UIKit

class OCSSPutInOrderParentPage: OCSSBaseViewController {

    var currentIndex:Int = 0;
    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "入库单";
        let contentView = OCSSPageIndexView.init(frame: CGRect.init(x: 0, y: 64, width: kWidth, height: kHeight-64), titles: ["全部","采购","调拨","铺货","退货"], controllers: initControllers());
        contentView.currentIndex = currentIndex;
        view.addSubview(contentView);
    }
    func initControllers() -> [OCSSContentOrderListPage] {
        //全部
        let allPage = OCSSContentOrderListPage.init();
        allPage.type = OrderType.putIn;
        //采购
        let purchesPage = OCSSContentOrderListPage.init();
        purchesPage.type = OrderType.putIn;
        //退货
        let rebackPage = OCSSContentOrderListPage.init();
        rebackPage.type = OrderType.putIn;
        //调拨
        let allotPage = OCSSContentOrderListPage.init();
        allotPage.type = OrderType.putIn;
        //铺货
        let distributionPage = OCSSContentOrderListPage.init();
        distributionPage.type = OrderType.putIn;
        
        let controllers = [allPage, purchesPage,allotPage, distributionPage,rebackPage];
        return controllers;
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
